package com.imagecollector.service.impl;

import com.imagecollector.domain.entity.TaskSubmitRecord;
import com.imagecollector.mapper.TaskSubmitRecordMapper;
import com.imagecollector.service.ITaskSubmitRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 任务提交记录表 服务实现类
 * </p>
 *
 * @author wrf
 * @since 2024-07-31
 */
@Service
public class TaskSubmitRecordServiceImpl extends ServiceImpl<TaskSubmitRecordMapper, TaskSubmitRecord> implements ITaskSubmitRecordService {


    @Override
    public TaskSubmitRecord getSubmitRecord(Integer taskId, Integer userId, Integer receiverRecordId) {
        return lambdaQuery().eq(TaskSubmitRecord::getTaskId,taskId).eq(TaskSubmitRecord::getUserId,userId).eq(TaskSubmitRecord::getReceiverRecordId,receiverRecordId).one();
    }
}
